﻿using Adnc.Infra.Entities.Config;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Text;

namespace WYT.Usr.Repositoty.Entities.Config
{
    //public class UserConfig : EntityTypeConfiguration<User>
    //{
    //    public override void Configure(EntityTypeBuilder<User> builder)
    //    {
    //        base.Configure(builder);

    //        builder.HasKey(x => x.Id);
    //        builder.Property(x => x.Nickname).HasMaxLength(100);
    //        builder.Property(x => x.Code).HasMaxLength(50);
    //        builder.Property(x => x.Head).HasMaxLength(500);
    //        builder.Property(x => x.Tel).IsRequired(false).HasMaxLength(11);
    //        builder.Property(x => x.Password).HasMaxLength(50);
    //        builder.Property(x => x.WithdrawalPassword).IsRequired(false).HasMaxLength(50);
    //        builder.Property(x => x.AppletOpenID).IsRequired(false).HasMaxLength(50);
    //        builder.Property(x => x.AppOpenID).IsRequired(false).HasMaxLength(50);
    //        builder.Property(x => x.GongZongHaoOpenID).IsRequired(false).HasMaxLength(50);
    //        builder.Property(x => x.UnionID).IsRequired(false).HasMaxLength(50);
    //        builder.Property(x => x.Country).IsRequired(false).HasMaxLength(100);
    //        builder.Property(x => x.Province).IsRequired(false).HasMaxLength(100);
    //        builder.Property(x => x.City).IsRequired(false).HasMaxLength(100);
    //    }
    //}
}
